﻿using System;
using System.Collections.Generic;
using System.Text;
using System.Configuration;

namespace URLRewriter.Config
{
    public class UrlsCollection : ConfigurationElementCollection
    {
        // Methods
        protected override ConfigurationElement CreateNewElement()
        {
            return new UrlConfigElement();
        }

        protected override object GetElementKey(ConfigurationElement element)
        {
            return ((UrlConfigElement)element).VirtualUrl;
        }

        // Properties
        public UrlConfigElement this[int index]
        {
            get
            {
                return (UrlConfigElement)base.BaseGet(index);
            }
        }
    }

 

}
